package generator.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import generator.domain.AppInfo;
import generator.service.AppInfoService;
import generator.mapper.AppInfoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 李展鹏
* @description 针对表【app_info】的数据库操作Service实现
* @createDate 2024-05-17 10:27:58
*/
@Service
public class AppInfoServiceImpl extends ServiceImpl<AppInfoMapper, AppInfo>
    implements AppInfoService{
    @Resource
    AppInfoMapper appInfoMapper;

    @Override
    public List<AppInfo> getAppInfoList(String softwareName, Integer status, Integer categoryLevel1, Integer categoryLevel2, Integer categoryLevel3, Integer flatformId, Integer devId, Integer from, Integer pageSize) {
        from=(from-1)*pageSize;
        return appInfoMapper.getAppInfoList(softwareName,status,categoryLevel1,categoryLevel2,categoryLevel3,flatformId,devId,from,pageSize);
    }

    @Override
    public int getAppInfoCount(String softwareName, Integer status, Integer categoryLevel1, Integer categoryLevel2, Integer categoryLevel3, Integer flatformId, Integer devId) {
        return appInfoMapper.getAppInfoCount(softwareName,status,categoryLevel1,categoryLevel2,categoryLevel3,flatformId,devId);
    }

    @Override
    public AppInfo getByIdAppInfo(Integer id) {
        return appInfoMapper.getByIdAppInfo(id);
    }
}




